Bamboo HR Employee By ID
Get one employee by id.
import { BreadOperationName } from '@easybread/operations';
export async function adapterBambooHrEmployeeById(
breadId: string,
identifier: string
): Promise<PersonSchema> {
const results = await client.invoke(BreadOperationName.EMPLOYEE_BY_ID,{
breadId,
params: { identifier }
});
if (results.rawPayload.success === false) {
throw new Error('Bamboo HR Employee By Id Failed', {
cause: results.rawPayload
});
}
return results.payload;
}